home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 421 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: solon.com!not-for-mail
  2. From: msb@sq.com
  3. Newsgroups: comp.std.c,comp.lang.c.moderated
  4. Subject: Re: Integral promotion.
  5. Date: 17 Feb 1996 12:11:54 -0600
  6. Organization: SoftQuad Inc., Toronto, Canada
  7. Sender: clc@solutions.solon.com
  8. Approved: clc@solutions.solon.com
  9. Message-ID: <4g55pa$b7c@solutions.solon.com>
  10. References: <4fstj7$2l6@solutions.solon.com> <4fu835$9de@solutions.solon.com> <4fvgrm$dv9@solutions.solon.com> <4g27gn$q5k@solutions.solon.com>
  11. NNTP-Posting-Host: solutions.solon.com
  12.  
  13. > > Hence implementation-defined behavior occurs.
  14. > Thus, the implementation has to say exactly how it handles this.
  15. > There is still some question as to whether the implementation can
  16. > define it as an overflow resulting in program termination, is there
  17. > not?
  18.  
  19. Nope.  I requote:
  20.  
  21. *  From 3.10/1.6 (emphasis added):
  22.  
  23. #  Implementation-defined behavior -- behavior, for a CORRECT program
  24. #  construct and CORRECT data, that depends on the characteristics of
  25. #  the implementation and that each implementation shall document.
  26.  
  27. If the construct and data are correct, then it can't be correct to cause
  28. program termination.
  29. -- 
  30. Mark Brader, msb@sq.com             "Logic is logic.  That's all I say."
  31. SoftQuad Inc., Toronto                      -- Oliver Wendell Holmes
  32.  
  33. My text in this article is in the public domain.
  34.